package com.test.platform.repository

import com.test.platform.network.ApiService
import com.test.platform.model.DeveloperInfo

class DeveloperInfoRepository(private val apiService: ApiService) {
    suspend fun getAllDeveloperInfos() = apiService.getAllDeveloperInfos()
    suspend fun getDeveloperInfoById(id: Int) = apiService.getDeveloperInfoById(id)
    suspend fun createDeveloperInfo(developerInfo: DeveloperInfo) = apiService.createDeveloperInfo(developerInfo)
    suspend fun updateDeveloperInfo(id: Int, developerInfo: DeveloperInfo) = apiService.updateDeveloperInfo(id, developerInfo)
    suspend fun deleteDeveloperInfo(id: Int) = apiService.deleteDeveloperInfo(id)
}